package com.service;

import com.pojo.dto.Message;
import com.pojo.vo.CFishingShopVo;
import com.pojo.vo.CommentVo;

import java.util.List;

public interface CFishingShopService {
    /**
     * 查本城市所有商店，按照距离远近排序
     *
     * @param cFishingShopVo
     * @return
     */
    Message<List<CFishingShopVo>> list(CFishingShopVo cFishingShopVo);

    /**
     * 查一个，详细界面
     *
     * @param id
     * @return
     */
    Message<CFishingShopVo> selectOne(Long id);

    /**
     * 添加
     *
     * @param cFishingShopVo
     * @return
     */
    Message<CFishingShopVo> add(CFishingShopVo cFishingShopVo);

    /**
     * 更新
     *
     * @param cFishingShopVo
     * @return
     */
    Message<CFishingShopVo> edit(CFishingShopVo cFishingShopVo);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Message<CFishingShopVo> delete(Long id);

    /**
     * 查询所有的评论
     *
     * @param id
     * @return
     */
    List<CommentVo> selectComment(Long id, Long type);

}
